home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group01b.txt
/
000178_icon-group-sender_Mon Nov 26 07:50:05 2001.msg
< prev
next >
Wrap
Internet Message Format
|
2002-01-03
|
2KB
Return-Path: <icon-group-sender>
Received: (from root@localhost)
by baskerville.CS.Arizona.EDU (8.11.1/8.11.1) id fAQEmuo26815
for icon-group-addresses; Mon, 26 Nov 2001 07:48:56 -0700 (MST)
Message-Id: <200111261448.fAQEmuo26815@baskerville.CS.Arizona.EDU>
From: Art Eschenlauer <art.eschenlauer@sufsys.com>
To: "''icon-group@CS.Arizona.EDU ' '" <icon-group@cs.arizona.edu>
Subject: transmit ( expr @ coexpr_label ) - what is it, and how to use it?
Date: Mon, 26 Nov 2001 07:11:10 -0600
Errors-To: icon-group-errors@cs.arizona.edu
Status: RO
Content-Length: 1209
>From the Icon help files:
x1 @ C : x2 -- transmit value to co-expression
x1 @ C activates C, transmitting the value of x1 to it; it produces the
outcome of activating C.
@C : x -- activate co-expression
@C produces the outcome of activating C.
I found one example of the first syntax in the first edition of the Icon
handbook, but I'm having trouble conceptualizing what it is doing. That
example showed use of the &main keyword but no example was given for use of
the &source keyword. The example was a "producer-consumer" implementation.
Please enlighten me:
I thought that co-expressions existed to permit using a result sequence in a
different place in the program from where it was defined. The
"transmission" syntax suggests that I should extend this conceptualization.
What would you suggest?
So far, I'm beginning to think of it like this:
@C means something like "read from a pipe" - the "outcome" that it
produces, x, is the next result in the sequence of results produced by C
x1@C means something like "write to a pipe"" - I have no idea what the
"outcome" that it produces, x2, is or how that outcome is affected by x1
how can I learn more about coexpressions in Icon?